package com.xuecheng.comment.agent;

import com.xuecheng.api.content.model.dto.CourseBaseDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = XcFeignServiceNameList.XC_CONTENT_SERVICE)
public interface ContentApiAgent {

    @GetMapping("content/l/{targetId}")
    RestResponse<CourseBaseDTO> getCourseBaseByTargetId(@PathVariable Long targetId);

    @GetMapping ("/content/course/{courseId}")
    CourseBaseDTO getCourseBaseById(@PathVariable(value = "courseId") Long courseId);
}
